package my.twitter;

import my.twitter.client.TwitterHttpPost;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TwitterClient {

    public static void main(String[] args) throws Exception {
	AbstractApplicationContext context = new ClassPathXmlApplicationContext("client-config.xml");
	context.registerShutdownHook();

	TwitterHttpPost twitter = context.getBean(TwitterHttpPost.class);
	twitter.executeStatusesFilter();

	context.close();
    }
}
